-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: clean up async calls with expired leases #2435
Conversation
2652ced
to
bfb5243
Compare
Can you file a ticket for this? |
backend/controller/controller.go
Outdated
} | ||
for _, call := range calls { | ||
callResult := either.RightOf[[]byte]("async call lease expired") | ||
_, err := s.dal.CompleteAsyncCall(ctx, call, callResult, func(tx *dal.Tx, isFinalResult bool) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be using the tx, not the dal
backend/controller/controller.go
Outdated
if err != nil { | ||
return 0, fmt.Errorf("failed to complete zombie async call: %w", err) | ||
} | ||
// TODO: telemetery |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do the telemetry in this PR, or file a ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added 👍
# Conflicts: # backend/controller/sql/querier.go # backend/controller/sql/queries.sql.go
# Conflicts: # backend/controller/sql/querier.go # backend/controller/sql/queries.sql.go
6ecf04c
to
7acb969
Compare
c1b588f
to
b809e59
Compare
fixes #2214
Changes:
Known issues: